package monocaffe.server

// password md5 $1$443P4k4i$u2iDBQly1IZ949fgNMXdZ1

class NssUser {
	
	String userName
	String realname
	String password
	String shell = "/bin/bash"
	String status = "X"
	String homedir
	String lastchange
	
	String email
	String phone
	
	int uid
	int gid = 6000
	int min = 0
	int max = 0
	int warn = 7
	int inact = -1
	int expire = -1
	
//	static mapping = {
//		id name: user_id
//	}

    static constraints = {
		userName(blank:false, maxSize:50)
		realname(blank:false, maxSize:32)
		password(password:true, maxSize:40)
		shell(blank:false, maxSize:20)
		status(blank:false, maxSize:1)
		homedir(blank:false, maxSize:32)
		lastchange(maxSize:50)
    }
}
